package com.zkthink.ceres.finance.dto;

import java.time.LocalDateTime;

import com.zkthink.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 流水明细表
 * </p>
 *
 * @author vivi.huang
 * @since 2020-05-26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "JournalDetailUpdateDTO", description = "流水明细表")
public class JournalDetailUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 收支类型 1：收入，2：支出
     */
    @ApiModelProperty(value = "收支类型 1：收入，2：支出")
    private Integer paymentType;
    /**
     * 流水类型 1：订单入账，2：买家退款，3：提现
     */
    @ApiModelProperty(value = "流水类型 1：订单入账，2：买家退款，3：提现")
    private Integer journalType;
    /**
     * 订单Id
     */
    @ApiModelProperty(value = "订单Id")
    @Length(max = 200, message = "订单Id长度不能超过200")
    private String orderCode;
    /**
     * 入账时间
     */
    @ApiModelProperty(value = "入账时间")
    private LocalDateTime entryTime;
    /**
     * 金额
     */
    @ApiModelProperty(value = "金额")
    private Long amount;
    /**
     * 余额
     */
    @ApiModelProperty(value = "余额")
    private Long balance;
}
